package com.ucode.model.cgms.form;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema.RequiredMode;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Schema(description = "陪玩俱乐部社区系统 - 添加陪玩订单报备日志Form")
@Data
@EqualsAndHashCode
public class CgmsCompanionOrderAddReportLogForm {

    @Schema(description = "陪玩订单编号", requiredMode = RequiredMode.REQUIRED)
    @NotNull(message = "陪玩订单编号 不能为空")
    private Long id;

    /**
     * 服务取证视频
     */
    @Schema(description = "服务取证视频", requiredMode = RequiredMode.AUTO)
    private String videoUrl;

    /**
     * 服务取证图片
     */
    @Schema(description = "服务取证图片", requiredMode = RequiredMode.AUTO)
    @Size(max = 9, message = "服务取证图片不能超过 9 张")
    private List<String> evidencePics;
    /**
     * 服务取证备注
     */
    @Schema(description = "服务取证备注", requiredMode = RequiredMode.AUTO)
    @NotBlank(message = "服务取证备注 不能为空")
    @Size(max = 500, message = "服务取证备注不能超过 500 个字符")
    private String evidenceRemark;

}
